﻿using Serilog;
using System.Windows;

namespace GTAFingerprinterCore
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            Init();
            base.OnStartup(e);
        }

        private void Init()
        {
            var log = new LoggerConfiguration()
                .WriteTo.File("Logs\\Log.txt", rollingInterval: RollingInterval.Day)
                .CreateLogger();
            Log.Logger = log;
        }
    }
}